import React,{ useState } from 'react'
export default function App() {
  let result=useState(0)
  let count=result[0]
  let setCount=result[1]
  console.log(result);
  let result2=useState('tom')
  console.log(result2);
  let uname=result2[0]
  let setUname=result2[1]
  function doClick(){
    setCount(count+1)
  }
  return (
    <div>
      <button onClick={doClick}>当前已经点击了{count}次</button>
    </div>
  )
}
